﻿/*
 * Rappelz: Endless Odyssey - The first free open source Rappelz server emulator
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rappelz.GameServer
{
    public class ResourceManager
    {
         public static string GetFullPathname(string szFileName)
         {
//             int v2; // ebp@0
//             std::basic_string<char,std::char_traits<char>,std::allocator<char> > *v3; // esi@1
//             const char *v4; // ebx@1
//             KHash<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,khash_def::hashPr_str<khash_def::string_tr,khash_def::nocase_tr> > *v5; // eax@1
// 
//             v3 = *(v2 + 8);
//             v4 = *(v2 + 12);
//             *(v2 - 16) = 0;
//             *(v2 - 28) = v3;
//             std::basic_string<char_std::char_traits<char>_std::allocator<char>>::basic_string<char_std::char_traits<char>_std::allocator<char>>(v3);
//             *(v2 - 4) = 0;
//             *(v2 - 16) = 1;
//             khash_def::hashPr_str<khash_def::string_tr_khash_def::nocase_tr>::Key::Key((v2 - 24), v4);
//             *(v2 - 4) = 1;
//             v5 = ResourceManager.GetResourceFileHash();
//             KHash<std::basic_string<char_std::char_traits<char>_std::allocator<char>>_khash_def::hashPr_str<khash_def::string_tr_khash_def::nocase_tr>>::lookup(
//                 v5,
//                 (v2 - 24),
//                 v3);
//             operator delete__(*(v2 - 24));
//             return v3;
             return Globals.AppPath + "\\resource\\newmap\\" + szFileName;
         }
    }
}
